<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>管理员管理</title>
  <!--分页样式-->
  <link rel="stylesheet" type="text/css" href="../../frame/css/page.css">
  <link rel="stylesheet" type="text/css" href="../../frame/fonts/iconfont.css">
  <link rel="stylesheet" type="text/css" href="../../frame/layui/css/layui.css">
  <link rel="stylesheet" type="text/css" href="../../frame/css/common.css">
  <link rel="stylesheet" type="text/css" href="../../frame/css/ThemeManager.css">
  <script src="../../javascript/jquery-1.9.1.min.js"></script>
</head>
<body>
<div class="layui-layout layui-layout-admin" id="main">
  <!--top-->
  <div class="top">
  </div>
  <!--left-->
  <div class="left">
  </div>
  <div class="layui-body clearfix">
    <!-- 内容主体区域 -->
    <div class="common_box">
      <div class="content_table content_table3">
        <!--主题搜索-->
        <div class="common_box">
          <div class="common_box_title clearfix">
            <p class="common_title_name">管理员搜索</p>
          </div>
          <div class="common_box_con">
            <div class="search_box" id="search_box">
              <ul class="clearfix">
                <li class="clearfix">
                  <p class="search_name">管理员账号:</p>
                  <input type="text" ng-model="params.loginName" class="text text_red" placeholder="">
                </li>
                <li class="clearfix">
                  <p class="search_name">管理员名称:</p>
                  <input type="text"  ng-model="params.name" class="text text_red" placeholder="">
                </li>

                <li class="clearfix">
                  <p class="search_name">角色:</p>
                  <select name="" id="" class="text_red" ng-model="params.roleId" ng-options="s.roleId as s.roleName for s in sysRoleList">
                    <option value="">全部</option>
                  </select>
                </li>
                <li class="clearfix" style="width: 16%;">
                  <a href="" class="btn_default_m" ng-click="search()">查询</a>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="common_box">
      <div class="content_table2">
        <div class="common_box_title clearfix">
          <p class="common_title_name">管理员列表</p>
          <ul class="clearfix operation">
            <li><a class="btn_default_xz pop_prompt_btn16" ng-click="edit()">新增</a></li>
            <li><a class="btn_default_m" ng-click="batchDel()">批量删除</a></li>
          </ul>
        </div>
        <div class="common_box_con">
          <div class="table">
            <table width="100%">
              <thead>
              <tr>
                <td class="table_number"><input id="checkAllId" type="checkbox"
                                                ng-checked="isCheckContentAll" ng-model="isCheckContentAll"
                                                class="chk_1"></td>
                <td>序号</td>
                <td>管理员账号</td>
                <td>管理员名称</td>
                <td>角色</td>
                <td>联系电话</td>
                <td>操作人</td>
                <td>操作时间</td>
                <td>状态</td>
                <td class="table_operation">操作</td>
              </tr>
              </thead>
              <tbody>
              <tr ng-repeat="d in page.content">
                <td class="table_number"><input im_id="{{d.userId}}" ng-checked="false" ng-click="checkContent()" type="checkbox"></td>
                <td ng-bind="$index+1"></td>
                <td ng-bind="d.loginName"></td>
                <td ng-bind="d.name">
                </td>
                <td ng-bind="d.roleName">
                </td>
                <td ng-bind="d.phone"></td>
                <td ng-bind="d.operatorName"></td>
                <td ng-bind="d.updateTime|date:'yyyy-MM-dd HH:mm'"></td>
                <td >
                  <a style="color: #1da7ee" ng-click="isActive(d.isActive,d.userId)" ng-bind="d.isActive==0?'启用':'禁用'"></a>
                </td>
                <td class="table_operation">
                  <a  class="iconfont icon-bianji" ng-click="edit(d.userId)" title="编辑"></a>
                  <a class="iconfont icon-shanchu" title="删除" ng-click="delete(d.userId)"></a>
                </td>

              </tr>

              </tbody>
            </table>
          </div>
        </div>
        <!--jump-->
        <tm-pagination conf="page"></tm-pagination>
      </div>
    </div>
  </div>
</div>
<!--footer-->
<!--<div class="bottom">

</div>-->
</body>
<script>
  $(".top").load("top.html");
  $(".left").load("left.html");
  // $(".bottom").load("bottom.html");
</script>
</html>
